<#assign prefixName = 'WHERE'>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__id??)>
	<#if (where__and__eq__id__value??)>
${prefixName} T.ID = :where__and__eq__id__value
	<#else>
${prefixName} T.ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__id__value??)>
${prefixName} T.ID <> :where__and__nq__id__value
	<#else>
${prefixName} T.ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__id__value??)>
${prefixName} T.ID = :where__or__eq__id__value
	<#else>
${prefixName} T.ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__id__value??)>
${prefixName} T.ID <> :where__or__nq__id__value
	<#else>
${prefixName} T.ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__endDaTi??)>
	<#if (where__and__eq__endDaTi__value??)>
${prefixName} T.END_DA_TI = :where__and__eq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__endDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__endDaTi__value??)>
${prefixName} T.END_DA_TI <> :where__and__nq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__endDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__endDaTi__value??)>
${prefixName} T.END_DA_TI = :where__or__eq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__endDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__endDaTi__value??)>
${prefixName} T.END_DA_TI <> :where__or__nq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__idTrCo??)>
	<#if (where__and__eq__idTrCo__value??)>
${prefixName} T.ID_TR_CO = :where__and__eq__idTrCo__value
	<#else>
${prefixName} T.ID_TR_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__idTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__idTrCo__value??)>
${prefixName} T.ID_TR_CO <> :where__and__nq__idTrCo__value
	<#else>
${prefixName} T.ID_TR_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__idTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__idTrCo__value??)>
${prefixName} T.ID_TR_CO = :where__or__eq__idTrCo__value
	<#else>
${prefixName} T.ID_TR_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__idTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__idTrCo__value??)>
${prefixName} T.ID_TR_CO <> :where__or__nq__idTrCo__value
	<#else>
${prefixName} T.ID_TR_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__nameTrCo??)>
	<#if (where__and__eq__nameTrCo__value??)>
${prefixName} T.NAME_TR_CO = :where__and__eq__nameTrCo__value
	<#else>
${prefixName} T.NAME_TR_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__nameTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__nameTrCo__value??)>
${prefixName} T.NAME_TR_CO <> :where__and__nq__nameTrCo__value
	<#else>
${prefixName} T.NAME_TR_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__nameTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__nameTrCo__value??)>
${prefixName} T.NAME_TR_CO = :where__or__eq__nameTrCo__value
	<#else>
${prefixName} T.NAME_TR_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__nameTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__nameTrCo__value??)>
${prefixName} T.NAME_TR_CO <> :where__or__nq__nameTrCo__value
	<#else>
${prefixName} T.NAME_TR_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__name??)>
	<#if (where__and__eq__name__value??)>
${prefixName} T.NAME = :where__and__eq__name__value
	<#else>
${prefixName} T.NAME IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__name??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__name__value??)>
${prefixName} T.NAME <> :where__and__nq__name__value
	<#else>
${prefixName} T.NAME IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__name??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__name__value??)>
${prefixName} T.NAME = :where__or__eq__name__value
	<#else>
${prefixName} T.NAME IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__name??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__name__value??)>
${prefixName} T.NAME <> :where__or__nq__name__value
	<#else>
${prefixName} T.NAME IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__codeTrCo??)>
	<#if (where__and__eq__codeTrCo__value??)>
${prefixName} T.CODE_TR_CO = :where__and__eq__codeTrCo__value
	<#else>
${prefixName} T.CODE_TR_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__codeTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__codeTrCo__value??)>
${prefixName} T.CODE_TR_CO <> :where__and__nq__codeTrCo__value
	<#else>
${prefixName} T.CODE_TR_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__codeTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__codeTrCo__value??)>
${prefixName} T.CODE_TR_CO = :where__or__eq__codeTrCo__value
	<#else>
${prefixName} T.CODE_TR_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__codeTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__codeTrCo__value??)>
${prefixName} T.CODE_TR_CO <> :where__or__nq__codeTrCo__value
	<#else>
${prefixName} T.CODE_TR_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__entityId??)>
	<#if (where__and__eq__entityId__value??)>
${prefixName} T.ENTITY_ID = :where__and__eq__entityId__value
	<#else>
${prefixName} T.ENTITY_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__entityId??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__entityId__value??)>
${prefixName} T.ENTITY_ID <> :where__and__nq__entityId__value
	<#else>
${prefixName} T.ENTITY_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__entityId??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__entityId__value??)>
${prefixName} T.ENTITY_ID = :where__or__eq__entityId__value
	<#else>
${prefixName} T.ENTITY_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__entityId??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__entityId__value??)>
${prefixName} T.ENTITY_ID <> :where__or__nq__entityId__value
	<#else>
${prefixName} T.ENTITY_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__beginDaTi??)>
	<#if (where__and__eq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI = :where__and__eq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__beginDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI <> :where__and__nq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__beginDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI = :where__or__eq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__beginDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI <> :where__or__nq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__code??)>
	<#if (where__and__eq__code__value??)>
${prefixName} T.CODE = :where__and__eq__code__value
	<#else>
${prefixName} T.CODE IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__code??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__code__value??)>
${prefixName} T.CODE <> :where__and__nq__code__value
	<#else>
${prefixName} T.CODE IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__code??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__code__value??)>
${prefixName} T.CODE = :where__or__eq__code__value
	<#else>
${prefixName} T.CODE IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__code??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__code__value??)>
${prefixName} T.CODE <> :where__or__nq__code__value
	<#else>
${prefixName} T.CODE IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__numberTrCo??)>
	<#if (where__and__eq__numberTrCo__value??)>
${prefixName} T.NUMBER_TR_CO = :where__and__eq__numberTrCo__value
	<#else>
${prefixName} T.NUMBER_TR_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__numberTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__numberTrCo__value??)>
${prefixName} T.NUMBER_TR_CO <> :where__and__nq__numberTrCo__value
	<#else>
${prefixName} T.NUMBER_TR_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__numberTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__numberTrCo__value??)>
${prefixName} T.NUMBER_TR_CO = :where__or__eq__numberTrCo__value
	<#else>
${prefixName} T.NUMBER_TR_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__numberTrCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__numberTrCo__value??)>
${prefixName} T.NUMBER_TR_CO <> :where__or__nq__numberTrCo__value
	<#else>
${prefixName} T.NUMBER_TR_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
